
module.exports = app => {
  const {
    router,
    controller
  } = app;
  let admin = controller.admin;
  // user
  router.post('/admin/register', admin.user.register)
  router.post('/admin/login', admin.user.login)
  router.post('/admin/loginOut', admin.user.loginOut)
  router.post('/admin/getMenuList', admin.user.getMenuList)
  router.post('/admin/menuAddMenu', admin.user.menuAddMenu)
  router.post('/admin/MenuModify', admin.user.MenuModify)
  router.post('/admin/menuDelete', admin.user.menuDelete)
  router.post('/admin/userList', admin.user.userList)
  router.post('/admin/addUser', admin.user.addUser)
  router.post('/admin/modifyUser', admin.user.modifyUser)
  router.post('/admin/delUser', admin.user.delUser)
  router.post('/admin/roleTypeList', admin.user.roleTypeList)
  router.post('/admin/roleTypeUpData', admin.user.roleTypeUpData)
  router.post('/admin/addRoleType', admin.user.addRoleType)

  //奖品管理
  router.post('/admin/active/platformPize', admin.active.platformPize)
  router.post('/admin/active/selfCreatePrize', admin.active.selfCreatePrize)
  router.post('/admin/active/DelselfCreatePrize', admin.active.DelselfCreatePrize)
  router.post('/admin/active/AddselfCreatePrize', admin.active.AddselfCreatePrize)
  router.post('/admin/active/modifySelfCreatePrize', admin.active.modifySelfCreatePrize)
  // 活动管理
  router.post('/admin/active/addActive', admin.active.addActive)
  router.post('/admin/active/editActive', admin.active.editActive)
  router.post('/admin/active/getActiveList', admin.active.getActiveList)
  router.post('/admin/active/getChannels', admin.active.getChannels)
  router.post('/admin/active/getActiveLink', admin.active.getActiveLink)

  // 其他
  router.post('/admin/active/getVirtualData', admin.active.getVirtualData)
  router.post('/admin/active/modifyVirtualData', admin.active.modifyVirtualData)


  // 零元购
  router.post('/admin/zeroyuanBuy/getGoodsList', admin.zeroyuanBuy.getGoodsList)
  router.post('/admin/zeroyuanBuy/getPhoto', admin.zeroyuanBuy.getPhoto)
  router.post('/admin/zeroyuanBuy/addGoods', admin.zeroyuanBuy.addGoods)
  router.post('/admin/zeroyuanBuy/upDataGoods', admin.zeroyuanBuy.upDataGoods)
  router.post('/admin/zeroyuanBuy/addActive', admin.zeroyuanBuy.addActive)
  router.post('/admin/zeroyuanBuy/getActiveList', admin.zeroyuanBuy.getActiveList)
  router.post('/admin/zeroyuanBuy/getChannels', admin.zeroyuanBuy.getChannels)

}